package net.yters.model.agents.actuators.sensors;

import java.util.ArrayList;

import net.yters.model.Environment.AGNT;
import net.yters.util.Box;

public class ClosestGoalAgentSensor extends ClosestAgentOfTypeSensor{
	static AGNT[] types = {AGNT.RAND, AGNT.HERO, AGNT.SMTC, AGNT.MIMC, AGNT.XTRN};
	
	public ClosestGoalAgentSensor() {
		super(convertEnumArrayToDoubleList(types));
	}

	@SuppressWarnings("rawtypes")
	static public ArrayList<Box> convertEnumArrayToDoubleList(Enum[] e) {
		ArrayList<Box> result = new ArrayList<Box>();
		for(int i = 0; i < e.length; i++) result.add(new Box(new Double(e[i].ordinal())));
		return result;
	}
	/**
	 * 
	 */
	private static final long serialVersionUID = 5343586301856218776L;

}
